package com.dts.service.imple;

import com.dts.entity.Good;
import com.dts.mapper.GoodMapper;
import com.dts.service.GoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("goodService")
public class GoodServiceImpl implements GoodService {

    @Autowired
    private GoodMapper goodMapper;


    @Override
    public List<Good> getList() {
        return goodMapper.getList();
    }

    @Override
    public void add(Good good) {

        goodMapper.add(good);

    }

    @Override
    public void delete(int id) {
        goodMapper.delete(id);
    }

    @Override
    public void update(Good good) {
        goodMapper.update(good);
    }
}
